package com.yb0os1.mapper;

import com.yb0os1.entity.SetmealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    List<Long> getSetmealIDsByDishIds(List<Long>ids);

    void deleteSetmealWithDishs(List<Long> ids);

    @Delete("delete from setmeal_dish where setmeal_id=#{id}")
    void deletDishsById(Long id);

    void insertDishs(List<SetmealDish> setmealDishes, Long setmealId);
}
